import { analyzeRelease } from '@/service/apis/analyze';
import { crawlEastmoney } from '@/service/apis/data-source';
import { createSse } from '@/utils/sse';
import { ProCard } from '@ant-design/pro-components';
import { Button, Modal, Progress } from 'antd';
import { FC, useEffect, useRef } from 'react';

const Crawler: FC = () => {
  const eventSourceRef: any = useRef();
  const modalRef: any = useRef();

  useEffect(() => {
    return () => {
      eventSourceRef?.current?.close();
      eventSourceRef.current = undefined;
    };
  }, []);

  return <></>;
};

export default Crawler;
